package com.spring.autowire;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @ClassName: Test
 * @Description: TODO
 **/
public class Test {
    public static void main(String[] args) {
        //使用AbstractApplicationContext虚类
        ApplicationContext context = new ClassPathXmlApplicationContext("/applicationContext.xml");
        AutowireService as = context.getBean(AutowireService.class);
        as.save();
    }
}
